package io.xxx.xbutler.domain;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.List;

@Data
@Accessors(chain = true)
@ExcelIgnoreUnannotated
public class Room {

    @TableId
    private String id;

    private String serialNo;

    private String name;

    private String base64Name;

    private String avatar;

    /**
     * 群二维码图片地址，7天有效
     */
    private String qrcode;

    /**
     * 群二维码源码
     */
    private String shortQrcode;

    private Long businessUnitId;

    private String businessUnitName;

    private Integer memberCount;

    /**
     * 群主
     */
    private String ownerId;

    private String ownerSerialNo;

    private String ownerName;

    private String ownerAvatar;

    private RobotType ownerRobotType;

    private RoomType type;

    /**
     * 群公告，2000字符以内
     */
    private String notice;

    private String base64Notice;

    private Boolean verification;

    private LocalDateTime createdTime;

    private LocalDateTime updatedTime;

    @TableField(exist = false)
    private Long storeId;

    @TableField(exist = false)
    private String storeCode;

    @TableField(exist = false)
    private String storeName;

    @TableField(exist = false)
    private Contact owner;

    @TableField(exist = false)
    private List<Contact> members;

    @TableField(exist = false)
    private List<Contact> admins;

    @TableField(exist = false)
    private String robotId;

    @TableField(exist = false)
    private String robotSerialNo;
}
